<style tyle="text/css">
	.modal-lg {
		width: 80%;
	}
</style>
<div class="modal-header">
	<h4 class="modal-title">产品分类信息</h4>
</div>
<div class="modal-body">

	<form name="form" class="form-horizontal form-validation ng-pristine ng-valid ng-valid-required">
		<div class="form-group">
			<div class="col-lg-3 control-label">所属景区:</div>
			<div class="col-lg-4">
				<ui-select ng-model="obj.view_code" theme="bootstrap" ng-disabled="!is_new">
					<ui-select-match placeholder="选择所属景区...">{{$select.selected.name}}</ui-select-match>
					<ui-select-choices repeat="item.code as item in viewList">
						<span ng-bind-html="item.name | highlight: $select.search"></span>
					</ui-select-choices>
				</ui-select>
			</div>
		</div>
		<div class="form-group">
			<div class="col-lg-3 control-label">卡类型:</div>
			<div class="col-lg-4">
				<ui-select ng-model="obj.card_type" theme="bootstrap" ng-disabled="!is_new">
					<ui-select-match placeholder="选择卡类型...">{{$select.selected.name}}</ui-select-match>
					<ui-select-choices repeat="item.code as item in category_list">
						<span ng-bind-html="item.name | highlight: $select.search"></span>
					</ui-select-choices>
				</ui-select>
			</div>
		</div>
		<!-- <div class="form-group">
			<div class="col-lg-3 control-label">产品分类编号:</div>
			<div class="col-lg-4">
				<input type="text" class="form-control" placeholder="必填" ng-model="obj.code">
			</div>
		</div> -->
		<div class="form-group">
			<div class="col-lg-3 control-label">押金失效天数:</div>
			<div class="col-lg-4">
				<input type="number" class="form-control" placeholder="必填" ng-model="obj.day_num" min="1">
			</div>
		</div>
		<div class="form-group">
			<label class="col-lg-3 control-label">简要描述:</label>
			<div class="col-lg-6">
				<textarea class="form-control" placeholder="简要描述" rows="3" ng-model="obj.description"></textarea>
			</div>
		</div>
	</form>
</div>

<div class="modal-footer">
	<button class="btn btn-success" type="button" ng-click="ok()">确定</button>
	<button class="btn btn-danger" type="button" ng-click="close()">关闭</button>
</div>